﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="MatchesByTeam.aspx.cs" Inherits="TsWeb.Reports.MatchesByTeam" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>



<asp:Content ID="Content3" ContentPlaceHolderID="LeftContent" runat="server">
 <asp:ScriptManager ID="ScriptManager2" runat="server" >
        <Scripts>
        <asp:ScriptReference Path= "~/Scripts/jquery-1.9.1.js" />
        <asp:ScriptReference Path= "~/Scripts/bootstrap.min.js"  />
        </Scripts>
        </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
    <Triggers>
    <asp:PostBackTrigger ControlID="ButtonRunReport"    />
    </Triggers>
        <ContentTemplate>

    <div>
        <ul>
            <div class="accordion" id="accordion2">
                <div class="accordion-group">
                    <div class="accordion-heading">
                        <li class="nav-header" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne">
                            Reporte de encuentros por equipo</li>
                    </div>
                    <div id="collapseOne" class="collapse in">
                        <div class="accordion-inner">
                            <h6>
                                Selecione un equipo</h6>
                                 <asp:DropDownList ID="ComboBoxTeams" runat="server" DataTextField="Name" AutoPostBack="true"
                                DataValueField="TeamId" >
                            </asp:DropDownList>


                                  <asp:Button ID="ButtonRunReport" runat="server" Text="Ejecutar reporte" OnClick="ButtonRunReport_Click"   CssClass="btn-success right" />
                        </div>
                    </div>
        </ul>
    </div>
            </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>



<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 

   
         
            <br />
            <br />
            <asp:GridView ID="GridViewMatches" runat="server" 
                AutoGenerateColumns="false"    CssClass="table table-hover table-striped" 
                GridLines="None" onrowdatabound="GridViewMatches_RowDataBound" >
                 <Columns>
                    <asp:BoundField DataField="MatchId" HeaderText="ID"  ControlStyle-CssClass="hidden" HeaderStyle-CssClass="hidden"
                        ItemStyle-CssClass="hidden"/>
                    <asp:BoundField DataField="Date" HeaderText="Fecha" />
                    <asp:BoundField DataField="HomeTeam" HeaderText="Equipo Locatario" />
                    <asp:BoundField DataField="VisitorTeam" HeaderText="Equipo Visitante" />
                       <asp:BoundField DataField="Winner" HeaderText="Ganador" />
                 </Columns>
            </asp:GridView>
   


</asp:Content>
